@extends('layouts.admin')
@section('title')
    我的账户
@endsection
@section('content')
    <nav class="nav nav-tabs nav-stacked">
        <a class="nav-link" href="{{ route('admin.setting') }}">
            <i class="fa fa-home" aria-hidden="true"></i>
        </a>
        <a class="nav-link active" href="#">我的资料</a>
    </nav>
    <form action="{{ route('admin.my.update') }}" method="post">
        @csrf
        @method('PUT')
        <div class="card mt-3">
            <div class="card-header">
                基本资料
            </div>
            <div class="card-body">
                <x-form title="昵称" name='name' required value="{{user('name')}}"></x-form>
                <x-form title="邮箱" name='email' required value="{{user('email')}}"></x-form>
                <x-form title="QQ号码" name='qq' required value="{{user('qq')}}"></x-form>
                <x-form title="手机号" name='mobile' required value="{{user('mobile')}}"></x-form>
                <x-form title="github" name='github' required value="{{user('github')}}"></x-form>
                <x-form title="微博" name='weibo' required value="{{user('weibo')}}"></x-form>

            </div>
        </div>
        <div class="card mt-3">
            <div class="card-header">
                密码
            </div>
            <div class="card-body">
                <x-form title="密码" type="password" name='password' required ></x-form>
                <x-form title="确认密码" type="password" name='password_confirmation' required ></x-form>

            </div>
        </div>
        <button class="btn btn-primary mt-3">保存</button>
    </form>
@endsection
